<template>
  <div>
    <!-- <router-view v-slot="{ Component }">
      <div style="padding: 15px">
        <el-alert :closable="false" title="menu 1-1" type="success">
          <component :is="Component" />
        </el-alert>
        <el-button @click="showComponent(Component)">showComponent(Component)</el-button>
      </div>
    </router-view> -->
    <h1>menu 1 -1 </h1>
  </div>

</template>
<script setup lang="ts">
import { onMounted } from 'vue'
onMounted(()=>{
  console.log('onMounted');
  //console.log('Component',Component);
})
const showComponent=(Component)=>{
  console.log('Component',Component);
}

</script>
